-- GENERATED SPELL FOR [Thundering Exile] --


function spell0_2762(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(9532,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2762', 3000, 1)
end

function spell1_2762(pUnit, Event) --@Shock,n/a--
pUnit:FullCastSpellOnTarget(11824,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2762', 0, 1)
end

function Sorts_2762(pUnit, Event)
local choix_sorts_2762 = math.random(0, 1)
if choix_sorts_2762 == 0 then
pUnit:RegisterEvent('spell0_2762', 1, 1)
end
if choix_sorts_2762 == 1 then
pUnit:RegisterEvent('spell1_2762', 1, 1)
end
end

function mob2762_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2762', math.random(1500, 3000), 1)
end

function mob2762_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2762_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2762_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2762, 1, 'mob2762_Action')
RegisterUnitEvent(2762, 2, 'mob2762_Leave')
RegisterUnitEvent(2762, 3, 'mob2762_Kill')
RegisterUnitEvent(2762, 4, 'mob2762_Die')
